<html>

<head>
    <link rel="stylesheet" href="../normalize.css">
    <link rel="stylesheet" href="../index.css">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>

    <div id="app">
        <!-- v-bind缩写 -->
        <a v-bind:href="url"> 点击我 </a>
        <a :href="url"> 点击我 </a>
        <br />

        <!-- v-on缩写 -->
        <a v-on:click="doSomething">...</a>
        <a @click="doSomething">...</a>
    </div>

    <script type="text/javascript">
        var vue = new Vue({
            el: '#app'
        });
    </script>
</body>

</html>